for i in range(10): # 表示整数范围值：0,1,2,3,4,5,6,7,8,9
    print("大吉大利")

# 4.通过for循环：计算0~100之间所有偶数的累计和
# 方式1
result = 0
for i in range(0, 101, 2): # 0,2,4,6,8,....
    result += i
    print(result)
# 方式2
    result = 0
for i in range(101):  # 0,1,2,3,4,....
    # 先取出i，然后在判断
    if i % 2 == 0:
        result += i
    print(result)
